import http from './request';
// 检查用户网络管理员权限
export const checkNetworkAdmin = data => {
  var ret = http.post('/api/block/network/checkNetworkAdmin', data);
  return ret;
};
// 创建网络
export const createNetWork = data => {
  var ret = http.post('/api/block/network/createNetWork', data);
  return ret;
};
// 组织申请加入一个网络
export const registerNetwork = data => {
  var ret = http.post('/api/block/network/registerNetwork', data);
  return ret;
};
// 查询网络详情
export const queryBaasNetwork = data => {
  var ret = http.get('/api/block/network/queryBaasNetwork', data);
  return ret;
};
// 查询是否是网络管理员
export const queryBaasNetworkByAdmin = data => {
  var ret = http.get('/api/block/network/queryBaasNetworkByAdmin', data);
  return ret;
};
// 开启网络
export const startNetWork = data => {
  var ret = http.post('/api/block/network/startNetWork', data);
  return ret;
};
// 停止网络
export const stopNetWork = data => {
  var ret = http.post('/api/block/network/stopNetWork', data);
  return ret;
};
// 用户加入网络
export const registerUser = data => {
  var ret = http.post('/api/block/network/registerUser', data);
  return ret;
};
// 查询组织下的网络
export const queryNetWorkList = data => {
  var ret = http.get('/api/block/network/queryNetWorkList', data);
  return ret;
};
